﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>autocomplete</title>

    <!-- WinJS references -->
    <link href="//Microsoft.WinJS.2.0.Preview.RC/css/ui-dark.css" rel="stylesheet" />
    <script src="//Microsoft.WinJS.2.0.Preview.RC/js/base.js"></script>
    <script src="//Microsoft.WinJS.2.0.Preview.RC/js/ui.js"></script>
    
    <link href="autocomplete.css" rel="stylesheet" />
    <script src="autocomplete.js"></script>
</head>
<body>
    <div class="autocomplete fragment">
        <header aria-label="Header content" role="banner">
            <button class="win-backbutton" aria-label="Back" disabled></button>
            <h1 class="titlearea win-type-ellipsis">
                <span class="pagetitle">Autocomplete Example</span>
            </h1>
        </header>
        <section aria-label="Main content" role="main">
            <div id="suggestItemTemplate" data-win-control="WinJS.Binding.Template">
                <div class="resultItem">
                    <div data-win-bind="innerText: text"></div>
                </div>
            </div>

            <p>Start typing for suggestions...</p>
            <div class="suggestions">              
                <input id="rxInput" type="text" />
            </div>
            
            <div id="results" class="suggestions"
                 data-win-control="WinJS.UI.ListView"
                 data-win-options="{ 
	                itemTemplate: select('#suggestItemTemplate'),
	                selectionMode: 'none'
                }">
            </div>
        </section>
    </div>
</body>
</html>
